



//
//  SHUserLogoutCell.m
//  JiFengDaRen
//
//  Created by SH_iOS on 2017/5/31.
//  Copyright © 2017年 SH_iOS. All rights reserved.
//

#import "SHUserLogoutCell.h"
@interface SHUserLogoutCell()
@property(nonatomic,strong)SHLabel *userLogoutLabel;
@end
@implementation SHUserLogoutCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        
        
    }
    
    return self;
}

- (SHLabel *)userLogoutLabel{
    if (!_userLogoutLabel) {
        _userLogoutLabel = [SHLabel labelWithText:@"退出登录" font:17 textColor:KREDCOLOR textAlignment:1];
        [self.contentView addSubview:_userLogoutLabel];
        
    }
    
    
    return _userLogoutLabel;
}


- (void)layoutSubviews{
    
    [self.userLogoutLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.centerX.equalTo(self.contentView);
    }];
    
}

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated{
    [super setHighlighted:highlighted animated:animated];
    if (highlighted) {
        self.backgroundColor = KCELLHIGHTLIGHTED;
    }else{
        self.backgroundColor = [UIColor whiteColor];
        
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated{
    [super setSelected:selected animated:animated];
    
    if (selected) {
        self.backgroundColor = KCELLHIGHTLIGHTED;
    }else{
        self.backgroundColor = [UIColor whiteColor];
        
    }
    
    
}
@end
